<%--
  Created by IntelliJ IDEA.
  User: a1275872671
  Date: 2024/4/30
  Time: 11:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>学生信息</title>
</head>
<body>
    <table align="center" border="1">
        <tr>
            <th>编号</th>
            <th>姓名</th>
            <th>学号</th>
            <th>密码</th>
            <th>身份证号</th>
            <th>入学时间 </th>
            <th>权限</th>
            <th>操作</th>
        </tr>
        <c:forEach var="login" items="${pagebean.data}">
    <tr>
        <td>${login.id}</td>
        <td>${login.stuName}</td>
        <td>${login.shuno}</td>
        <td>${login.pwd}</td>
        <td>${login.idcard}</td>
        <td>${login.startDate}</td>
        <td>${login.status}</td>
        <td>
            <a href="${pageContext.request.contextPath}/deleteservlet?id=${login.id}" onclick="return confirm('确定要删除吗')">删除</a>
            <a href="${pageContext.request.contextPath}/editServlet?id=${login.id}">编译</a>
        </td>
    </tr>
        </c:forEach>
    </table>
    <div style="width: 90%; margin: 0 auto">
        <a href="${pageContext.request.contextPath}/StulnfoServlet?pageNum=1&pageSize=${pagebean.pageSize}">首页</a>
        <a href="${pageContext.request.contextPath}/StulnfoServlet?pageNum=${pagebean.pageNum-1}&pageSize=${pagebean.pageSize}">上一页</a>
        <a href="${pageContext.request.contextPath}/StulnfoServlet?pageNum=${pagebean.pageNum+1}&pageSize=${pagebean.pageSize}">下一页</a>
        <a href="${pageContext.request.contextPath}/StulnfoServlet?pageNum=${pagebean.pageCount}&pageSize=${pagebean.pageSize}">尾页</a>
        【当前页${pagebean.pageNum}/${pagebean.pageCount}】

    </div>
</body>
</html>
